package com.hbzjt2012.snake;

import javax.swing.*;

// 游戏的主启动类
public class StartGame {
    public static void main(String[] args) {

        JFrame frame = new JFrame();

        frame.setBounds(10,10,900,720);
        frame.setResizable(false);  // 窗口大小不可变

        // 正常游戏界面都应该在面板上！
        GamePanel gamePanel = new GamePanel();
        frame.add(gamePanel);

        frame.setVisible(true);
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }
}
